package com.platform.common.config.schedule;

import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author prngshuiming
 * @date: 2018/6/13 17:39
 */
@Configuration
public class ScheduleConfiguration {
    Logger logger = LoggerFactory.getLogger(ScheduleConfiguration.class);
    @Bean
    public SceduleLoad sceduleLoad() throws SchedulerException, InterruptedException, ClassNotFoundException {
        SceduleLoad sceduleLoad = new SceduleLoad();
        sceduleLoad.init();
        return sceduleLoad;
    }
}
